package com.bw.controller;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;

import com.bw.domain.SysRole;

import com.bw.service.SysRoleService;


public class CellDataDemoHeadDataListenerRole implements ReadListener<SysRole> {


    private SysRoleService sysRoleService;

    public CellDataDemoHeadDataListenerRole(SysRoleService sysRoleService) {
        this.sysRoleService = sysRoleService;
    }

    @Override
    public void invoke(SysRole date, AnalysisContext analysisContext) {
        sysRoleService.insertUsers(date);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

        System.out.println("--------解析完之后的方法----------");
    }
}
